package cn.qingyun.gis.modules.enterprise.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 区划数据表
 * </p>
 *
 * @author skb
 * @since 2024-03-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("grid")
@ApiModel(value="Grid对象", description="区划数据表")
public class Grid implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty(value = "编码")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "父级编码")
    @TableField("parent_code")
    private String parentCode;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "父级名称")
    @TableField("parent_name")
    private String parentName;

    @ApiModelProperty(value = "层级")
    @TableField("level")
    private String level;

    @ApiModelProperty(value = "边界数据")
    @TableField("wkt")
    private String wkt;

    @ApiModelProperty(value = "扩展1km后的wkt")
    @TableField("expansion_wkt")
    private String expansionWkt;

    @ApiModelProperty(value = "面积")
    @TableField("area")
    private String area;

    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "84坐标系wkt")
    @TableField("original_wkt")
    private String originalWkt;


}
